﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.DBMAPPING;
using Project.IDAO;
namespace Project.DAO
{
    public class MainProductListDAO:IMainProductListDAO
    {
        public List<SP_PRODUCT_LOADMAINPRODUCTResult> LoadMainProductList()
        {
            // Declare variable to access database
            DbMappingDataContext database = new DbMappingDataContext();

            // Return a list of products
            return database.SP_PRODUCT_LOADMAINPRODUCT().ToList();
        }
    }
}
